//交集
let A1=new Set([1,3,67,24,89,24,35,24,7])
let A2=new Set([2,35,7,8,2,7,8,324,3,9,7])
let newA=Array.from(new Set([...A1].filter(x=>A1.has(x))));
console.log("newA",newA);